package com.example.crossborderecommerce.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.crossborderecommerce.entity.PurchaseOrder;
import com.example.crossborderecommerce.entity.Review;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReviewMapper extends BaseMapper<Review>{
    public List<Review> getReviewByPage(Page<Review> page,String type);
    public List<Review> finReviewsByOrderId(String productId);
}
